#pragma once
#include <string>
#include <fstream>
#include <vector>
#include <map>

#ifdef _DEBUG
#include <iostream>
#endif

using namespace std;

#include "constant.h"

#include "Station.h"
#include "Terminal.h"
#include "RailwayStation.h"
#include "Harbor.h"
#include "Airport.h"

class Master
{
private:
	map<char , Station* > stations;
	vector<Transport*> transports;
private : 
	bool isInputOrder( char code);
	void orderInput( ifstream &in );
	void transportInput( ifstream &in , char transport);
public:
	Master(void);
	virtual ~Master(void);

	void ReadFile();
	void Process();
	void PrintResult();

	void printStation();

	void Release();
	void printTransport();
};

